package com.cgtong.android.mvp.contract;

import com.cgtong.android.bean.ProblemBean;
import com.cgtong.android.http.callback.ProblemPageCallBack;
import com.zhouyou.http.exception.ApiException;

import java.util.List;

/**
 * Created by chunc on 2017/10/27.
 */

public interface HisProblemsContract {
    interface Model {

        void httpProblemsData(long maxId, long userId, ProblemPageCallBack<List<ProblemBean>> problemPageCallBack);

    }

    interface View {

        void setRefreshing(boolean isRefresh);

        void setEnableLoadMore(boolean enableLoadMore);

        void onLoadMoreEnd(boolean isLoadMoreEnd);

        void onError(ApiException e);

        void onNullData();

        void onHttpProblemsDataSuccess(List<ProblemBean> datas, boolean isRefresh);


    }

    interface Presenter {
        void httpProblemsData(long maxId, long userId, boolean isRefresh);

        void onDestroy();

    }
}
